<?php $this->headScript()->appendFile(HTTP_HOST.'/js/site-admin/regions.js'); ?>

<h3><?=$this->region['ID'] == 0 ? $this->translate('Добавить регион') : $this->translate('Редактировать регион')?></h3>

<input type="hidden" name="id" value="<?=$this->region['ID']?>" />
<table border="1">
	<tr>
		<td><?=$this->translate('Регион')?>: </td>
		<td><input type="text" name="Name" value="<?=$this->region['Name']?>" /></td>
	</tr>
	<tr>	
		<td><?=$this->translate('Страна')?>: </td>
		<td><?=$this->formSelect('CountryID', $this->region['CountryID'], array(), $this->countries);?></td>
	</tr>
	<tr>	
		<td><?=$this->translate('Алиас (только латинские символы!)')?>: </td>
		<td><input type="text" name="alias" value="<?=$this->region['alias']?>" /></td>
	</tr>
	<tr>	
		<td><?=$this->translate('Активная')?>: </td>
		<td>
			<input type="checkbox" name="active"<?=$this->region['active'] == 1 ? ' checked="checked"' : ''?>/>
		</td>
	</tr>
	<tr>	
		<td><?=$this->translate('Порядок сортировки: ')?>: </td>
		<td><input type="text" name="sort" value="<?=$this->region['sort']?>" /></td>
	</tr>
	<tr>	
		<td><?=$this->translate('СЕО Титл')?>: </td>
		<td><textarea name="seoTitle"><?=$this->region['seoTitle']?></textarea></td>
	</tr>
	<tr>	
		<td><?=$this->translate('СЕО Описание')?>: </td>
		<td><textarea name="seoDescription"><?=$this->region['seoDescription']?></textarea></td>
	</tr>
	<tr>	
		<td><?=$this->translate('СЕО Ключевые слова')?>: </td>
		<td><textarea name="seoKeywords"><?=$this->region['seoKeywords']?></textarea></td>
	</tr>
	<tr>
		<td colspan="2">
			<input type="button" value="<?=$this->translate('Сохранить')?>" onclick="saveRegion();" />
		</td>
	</tr>
</table>